package com.inspur.edp.common.expr.expresses.constant;


import com.inspur.edp.common.expr.Express;
import com.inspur.edp.common.expr.ExpressDSLGenerator;
import com.inspur.edp.common.expr.ast.ASTContext;

/**
 * @author lizhaorui
 * @description TODO
 * @date 2024/12/17 10:18
 */
public class NumberConstDSL implements ExpressDSLGenerator {

    @Override
    public String getKind() {
        return NumberConstExpr.KIND;
    }

    @Override
    public String generate(ASTContext context, Express express) {
        NumberConstExpr numberConstExpr = (NumberConstExpr) express;
        return numberConstExpr.getValue();
    }

}
